module.exports = app => {
    const { router, controller } = app;

    router.post('/api/pub/message/create/user/:userId/targetUser/:targetUserId', controller.message.createMessage);
    router.put('/api/pub/message/setRead/user/:userId/targetUser/:targetUserId', controller.message.setMessageAsRead);
    router.put('/api/pub/message/shieldMessage/:messageId', controller.message.shieldMessage);
    router.put('/api/pub/message/shieldConversation/user/:userId/targetUser/:targetUserId', controller.message.shieldConversation);
    router.get('/api/pub/message/messageInfo/:messageId', controller.message.getMessageById);
    router.get('/api/pub/message/chatList/user/:userId/targetUser/:targetUserId', controller.message.getChatMessageList);
    router.get('/api/pub/message/messageList/user/:userId', controller.message.getUserMessageList);
};